package com.community.body.domain;

import com.community.common.annotation.Excel;
import com.community.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 评论对象 zy_comment
 * 
 * @author community
 * @date 2024-04-17
 */
public class ZyComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commentId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 父级ID */
    @Excel(name = "父级ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /** 删除状态0默认1删除 */
    private Long delFlag;

    /** 社区互动ID */
    @Excel(name = "社区互动ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long interactionId;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /** 划属Id */
    @Excel(name = "划属Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long rootId;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public void setInteractionId(Long interactionId) 
    {
        this.interactionId = interactionId;
    }

    public Long getInteractionId() 
    {
        return interactionId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRootId(Long rootId) 
    {
        this.rootId = rootId;
    }

    public Long getRootId() 
    {
        return rootId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("content", getContent())
            .append("parentId", getParentId())
            .append("delFlag", getDelFlag())
            .append("interactionId", getInteractionId())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .append("rootId", getRootId())
            .toString();
    }
}
